<template>
	<view class="container">
		<view class="status padding text-center bg-white">
			<view class="status-box">
				<view class="title text-xxl text-green">
					<text class="margin-right-sm cuIcon-roundclosefill" v-if="status!=0"></text>
					<text v-if="status!=0">下单失败</text>
					<text class="margin-right-sm cuIcon-roundcheckfill" v-if="status==0"></text>
					<text v-if="status==0">下单成功</text>
				</view>
				<view class="content margin-top" v-if="status!=0"><text>请检查您的网络是否正常</text></view>
				<view class="content margin-top" v-if="status==0"><text>下单成功</text></view>
			</view>
			<view class="tool-box margin-top" ><button class="cu-btn round text-df bg-green" @tap="myOrder"  v-if="status==0">我的订单</button></view>
			<view class="tool-box margin-top"><button class="cu-btn round text-df bg-green" @tap="shopMall" v-if="status!=0">返回</button></view>
		</view>
	</view>
</template>

<script>
export default {
	 data(){
		 return {
			 status:"",
			 myCode:{},
		 }
	 }
	 ,onLoad(options){
		 const { status=1} = options;
		 this.status=status;
		 this.myCode = uni.getStorageSync("myCode");
	 },
	 onBackPress(options){
		 console.log(111)
	 },
	 methods:{
		 orderPage:function(){
			 uni.switchTab({
			 	url: '../home/user'
			 });
		 },
		 myOrder:function(){
			 uni.switchTab({
			 	url: '../home/user'
			 });
		 },
		 shopMall:function(){
			 uni.switchTab({
			 	url: '../home/user'
			 });
		 }
	 }
}
</script>

<style>
.container {
	background-color: #ffffff;
}
.payFail {
	text-align: center;
}
</style>
